package com.youpai.platform.vulture.common.entity;

import com.youpai.platform.vulture.common.enums.HeaderTypeEnum;

/**
 * @date: 2022/6/23 21:32
 * @author: Anna
 * @version: 1.0
 * @description: 协议头
 */
public class Header {

    /**
     * 头类型
     * {@link HeaderTypeEnum}
     */
    private int headerType;

    /**
     * 头value
     */
    private Object headerValue;

    public int getHeaderType() {
        return headerType;
    }

    public Header setHeaderType(int headerType) {
        this.headerType = headerType;
        return this;
    }

    public Object getHeaderValue() {
        return headerValue;
    }

    public Header setHeaderValue(Object headerValue) {
        this.headerValue = headerValue;
        return this;
    }

    public static Header build() {
        return new Header();
    }

    @Override
    public String toString() {
        return "Header{" +
                "headerType=" + headerType +
                ", headerValue=" + headerValue +
                '}';
    }
}
